import React from "react";
import { PersistGate } from "redux-persist/integration/react";
import { Provider } from "react-redux";
import ReactDOM from "react-dom/client";
import "reset-css";
// Register icon sprite
import "virtual:svg-icons-register";
import "./assets/styles/reset.less";
import "./assets/styles/antdsgin-ui.less";
import App from "./App.tsx";
import store, { persistor } from "./redux/index.ts";
import { ConfigProvider } from "antd";
import zh from "antd/es/locale/zh_CN"; // 简体中文
import dayjs from "dayjs";
import "dayjs/locale/zh-cn";
dayjs.locale("zh-cn");

ReactDOM.createRoot(document.getElementById("root")!).render(
  //   <React.StrictMode>
  <Provider store={store}>
    <PersistGate persistor={persistor}>
      <ConfigProvider
        locale={zh}
      >
        <App />
      </ConfigProvider>
    </PersistGate>
  </Provider>
  //   </React.StrictMode>
);
